import request from '@/utils/request'

// 查询例题题目管理列表
export function listManagerL(query) {
  return request({
    url: '/receipt/exampleSubjectManager/list',
    method: 'get',
    params: query
  })
}

// 查询例题题目管理详细
export function getManager(id) {
  return request({
    url: '/receipt/exampleSubjectManager/' + id,
    method: 'get'
  })
}

// 新增例题题目管理
export function addManager(data) {
  return request({
    url: '/receipt/exampleSubjectManager',
    method: 'post',
    data: data
  })
}

// 修改例题题目管理
export function updateManager(data) {
  return request({
    url: '/receipt/exampleSubjectManager',
    method: 'put',
    data: data
  })
}

// 删除例题题目管理
export function delManager(ids) {
  return request({
    url: '/receipt/exampleSubjectManager/' + ids,
    method: 'delete'
  })
}

// 导出例题题目管理
export function exportManager(query) {
  return request({
    url: '/receipt/exampleSubjectManager/export',
    method: 'get',
    params: query
  })
}
//获取题簇树状结构
export function getTreeData(query) {
  return request({
    url: '/receipt/exampleSubjectManager/getTreeList',
    method: 'get',
    params: query
  })
}
//selectClName
//模糊查询
export function selectClName(clusteName){
  return request({
    url: '/receipt/exampleSubjectManager/listName/' + clusteName,
    method: 'get',
  })
}
export function selectManageStatus(query) {
  return request({
    url: '/receipt/exampleSubjectManager/selectManageStatus',
    method: 'get',
    params: query
  })
}
